import jwt
import time
class MyJwt:
    def __init__(self):
        self.seckey="werhiqpWEFHP870029-329290**(*^&@^@^enalwndpa"

    def jwt_encode(self,data):
        return jwt.encode(data,self.seckey,algorithm="HS256")

    def jwt_decode(self,token):
        return jwt.decode(token,self.seckey,algorithms="HS256")

    def check(self,token):
        payload=jwt.decode(token,self.seckey,algorithms="HS256")
        newtoken=jwt.encode(payload,self.seckey,algorithm="HS256")
        if token == newtoken:
            nowtime=int(time.time())
            if nowtime - payload['data']['exp']>360000:
                return False
            return True
        return False
jj=MyJwt()

def timet():
    dada=time.time()
    dada=f"{str(dada)[3:7]}{str(dada)[-6:]}"
    print(dada)
timet()